/**
 * 
 */
package com.muchun.base.entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

import org.hibernate.annotations.GenericGenerator;

/**
 * @author w.weizhen
 *
 */
@MappedSuperclass
public class ShareEntity {
	/**
	 * 标识列
	 */
	@Id  
    @Column(name = "l_id", unique = true, nullable = false, length = 36,updatable=false)
//	指定主键值的产生策略由Hibernate根据数据库字段选择
	@GenericGenerator(name="systemUUID",strategy="uuid")
	@GeneratedValue(generator="systemUUID")
	private String id;
	/**
	 * 创建时间
	 */
    @Column(name = "l_create_time", length = 19,nullable = true,updatable=false)
	private String createTime;
	
	/**
	 * 最后更新时间
	 */
    @Column(name = "l_last_update_time", length = 19,nullable = true)
	private String lastUpdateTime;
	/**
	 * 数据状态，是否可用
	 * 0 false 不可用
	 * 1 true 可用
	 */
	@Column(name = "l_data_status", nullable = true)  
	private Boolean dataStatus;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public Boolean getDataStatus() {
		return dataStatus;
	}

	public void setDataStatus(Boolean dataStatus) {
		this.dataStatus = dataStatus;
	}
}
